package com.techsoul.module.accounting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.accounting.pojo.entity.AccountingAr;
import com.techsoul.module.accounting.pojo.param.AccountingArSearchParam;
import com.techsoul.module.accounting.pojo.vo.AccountingArVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 财务应收Mapper接口
 * 
 * @author liuen
 * @date 2021-04-11
 */
public interface AccountingArMapper extends BaseMapper<AccountingAr> {

    /**
     * 详情
     * @param id
     * @return
     */
    AccountingArVo findById(String id);
    List<AccountingArVo> findBYDeliveryLineId(@Param("deliveryId") String deliveryId);
    List<AccountingArVo> findBYReceLineId(@Param("receiptLineId") String receiptLineId);

    /**
     * 列表
     * @param params
     * @return
     */
    List<AccountingArVo> findAll(@Param("params") AccountingArSearchParam params);

    /**
     * 分页
     * @param page
     * @param params
     * @return
     */
    IPage<AccountingArVo> findAll(Page page, @Param("params") AccountingArSearchParam params);

}
